package cn.aidisplay.elderly.library.network

import com.kunsan.compose.net.ResultData


class ApiDSL<T>{
    var ok: ((ResultData<T>?) -> Unit)? = null
    var fail: ((error: ResultData<T>) -> Unit)? = null
    fun ok(data: (ResultData<T>?) -> Unit) {
        this.ok = data
    }
    fun fail(data: (error: ResultData<T>) -> Unit){
        this.fail = data
    }
}